/**
 * 文章-标签关联模型 
 * 
*/
module.exports = (sequelize, Sequelize) => {
    return sequelize.define("article_tags", {
        id: {
            type:Sequelize.UUID,
            notNull: true,
            primaryKey: true,
            defaultValue: Sequelize.UUIDV4,
        },
        articleId: {
            type: Sequelize.STRING,
            notNull: true,
            allowNull:false,
            comment: '文章id',
            // index:true, // 在article_id上创建普通索引
            // field:'article_id'
        },
        tagId: {
            type: Sequelize.STRING,
            comment: '标签id',
            allowNull:false,
            // field:'tag_id'
        },
    })
}